package com.kfm.jdbc.day0405;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class Demo04 {

    public static void main(String[] args) {
        BlockingQueue<String> queue = new ArrayBlockingQueue<>(1);
        Make make = new Make(queue);
        Eat eat = new Eat(queue, "吃货1");
        Eat eat2 = new Eat(queue, "吃货2");
        eat.start();
        make.start();
        eat2.start();
    }
}
